package cn.itsource.smartcampus.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Student {
    @Excel(name = "id",width = 20)
    private Long  id;
//lllll
    @Excel(name = "姓名",width = 20)
    private String name;
    @Excel(name = "性别",width = 20)
    private Boolean  sex;
    @Excel(name = "年龄",width = 20)
    private Integer   age;
    @Excel(name = "地址",width = 40)
    private String address;
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Excel(name = "出生日期",width = 20)
    private Date birthday;

    public Student() {
    }

    public Student(String name, Boolean sex, Integer age, String address, Date birthday) {
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.address = address;
        this.birthday = birthday;
    }

    public Student(Long id, String name, Boolean sex, Integer age, String address, Date birthday) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.address = address;
        this.birthday = birthday;
    }
}
